package net.osweb.crm.modules.email.bean;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Usermailserver entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "usermailserver")
public class UserEmailServer implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 6799047830335165640L;
	private UserEmailServerId id;
	private String username;
	private String password;
	private String smtphost;
	private Integer isAuthsmtp;
	private Integer portsmtp;
	private Integer isslsmtp;
	private String pop3host;
	private Integer isAuthpop3;
	private Integer portpop3;
	private Integer isslpop3;
	private String comment;

	// Constructors

	/** default constructor */
	public UserEmailServer() {
	}

	/** minimal constructor */
	public UserEmailServer(UserEmailServerId id) {
		this.id = id;
	}

	/** full constructor */
	public UserEmailServer(UserEmailServerId id, String username,
			String password, String smtphost, Integer isAuthsmtp,
			Integer portsmtp, Integer isslsmtp, String pop3host,
			Integer isAuthpop3, Integer portpop3, Integer isslpop3,
			String comment) {
		this.id = id;
		this.username = username;
		this.password = password;
		this.smtphost = smtphost;
		this.isAuthsmtp = isAuthsmtp;
		this.portsmtp = portsmtp;
		this.isslsmtp = isslsmtp;
		this.pop3host = pop3host;
		this.isAuthpop3 = isAuthpop3;
		this.portpop3 = portpop3;
		this.isslpop3 = isslpop3;
		this.comment = comment;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "id", column = @Column(name = "id", nullable = false)),
			@AttributeOverride(name = "userid", column = @Column(name = "userid", nullable = false)) })
	public UserEmailServerId getId() {
		return this.id;
	}

	public void setId(UserEmailServerId id) {
		this.id = id;
	}

	@Column(name = "username")
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "password")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "smtphost")
	public String getSmtphost() {
		return this.smtphost;
	}

	public void setSmtphost(String smtphost) {
		this.smtphost = smtphost;
	}

	@Column(name = "isAuthsmtp")
	public Integer getIsAuthsmtp() {
		return this.isAuthsmtp;
	}

	public void setIsAuthsmtp(Integer isAuthsmtp) {
		this.isAuthsmtp = isAuthsmtp;
	}

	@Column(name = "portsmtp")
	public Integer getPortsmtp() {
		return this.portsmtp;
	}

	public void setPortsmtp(Integer portsmtp) {
		this.portsmtp = portsmtp;
	}

	@Column(name = "isslsmtp")
	public Integer getIsslsmtp() {
		return this.isslsmtp;
	}

	public void setIsslsmtp(Integer isslsmtp) {
		this.isslsmtp = isslsmtp;
	}

	@Column(name = "pop3host")
	public String getPop3host() {
		return this.pop3host;
	}

	public void setPop3host(String pop3host) {
		this.pop3host = pop3host;
	}

	@Column(name = "isAuthpop3")
	public Integer getIsAuthpop3() {
		return this.isAuthpop3;
	}

	public void setIsAuthpop3(Integer isAuthpop3) {
		this.isAuthpop3 = isAuthpop3;
	}

	@Column(name = "portpop3")
	public Integer getPortpop3() {
		return this.portpop3;
	}

	public void setPortpop3(Integer portpop3) {
		this.portpop3 = portpop3;
	}

	@Column(name = "isslpop3")
	public Integer getIsslpop3() {
		return this.isslpop3;
	}

	public void setIsslpop3(Integer isslpop3) {
		this.isslpop3 = isslpop3;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}